package com.xxgc.moriserver.config;

import cn.dev33.satoken.exception.NotLoginException;
import com.xxgc.moriserver.result.Result;
import org.springframework.core.annotation.Order;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@Order(99999)
@RestControllerAdvice
public class SystemExceptionConfiger {
    @ExceptionHandler
    public Result notLoginException(NotLoginException notLoginException){
        return Result.fail("无权限").code(9999);
    }
}
